package com.hc.summary.room.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.hc.summary.room.entity.Word;

import java.util.List;

@Dao
public interface WordDao {
    @Insert
    void insertWord(Word word);
    @Update
    void updateWord(Word word);
    @Delete
    void deleteWord(Word word);
    @Query("SELECT * FROM WORD ORDER BY ID DESC")
    List<Word> selectAllWords();
}
